﻿<UserControl x:Class="Controls.WaveFormControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="100" d:DesignWidth="300"
			 Background="{Binding Background, ElementName=ThisControl}" Foreground="#F0F0F0" x:Name="ThisControl">
	<Grid>
		<Viewbox Stretch="Fill" HorizontalAlignment="Center" VerticalAlignment="Center">
			<Canvas x:Name="mainCanvas" HorizontalAlignment="Center" VerticalAlignment="Center" />
		</Viewbox>
		<StackPanel Margin="10" x:Name="Errors" Visibility="Collapsed">
			<TextBlock Text="There was a problem loading this waveform." TextWrapping="Wrap" TextTrimming="WordEllipsis" FontSize="9" />
			<TextBlock x:Name="ErrorDetails" TextWrapping="Wrap" TextTrimming="WordEllipsis" FontSize="9" />
		</StackPanel>
		<Grid x:Name="Loader" Background="#FF6C6C6C">
			<TextBlock Text="Waveform Loading... Please Wait." Foreground="{Binding Foreground, ElementName=ThisControl}" TextAlignment="Center" VerticalAlignment="Center" Margin="0,0,0,30"/>
			<ProgressBar x:Name="LoaderBar" MaxWidth="300" MinWidth="200" HorizontalAlignment="Center" Height="20" Margin="0,10,0,0" IsIndeterminate="True" >
				<ProgressBar.Foreground>
					<LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
						<GradientStop Color="#FFFFA200" Offset="0.523"/>
						<GradientStop Color="#FFE6E6E6" Offset="1"/>
						<GradientStop Color="#FFE6E6E6"/>
					</LinearGradientBrush>
				</ProgressBar.Foreground>
			</ProgressBar>
		</Grid>
	</Grid>
</UserControl>
